<?php

namespace common\models\pdd;

use common\models\base\ActiveRecord;
use Yii;

/**
 * This is the model class for table "tb_sync_log".
 *
 * @property int $id
 * @property int $batch_no 批次id
 * @property int $uid 会员id
 * @property int $mall_id 店铺id
 * @property int $goods_id 商品id
 * @property string $error_info 错误信息
 * @property int $created_at 创建时间
 * @property int $update_at 更新时间
 */
class PddBatchSyncLogProducts extends ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'pdd_batch_logs_products';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['status', 'type', 'batch_no', 'uid', 'mall_id', 'goods_id', 'created_at', 'updated_at'], 'integer'],
            [['error_info', 'aftercontent', 'beftercontent', 'batchType'], 'string'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'batch_no' => '商品id数组',
            'source_type' => '批次号',
            'uid' => '用户ID',
            'mall_id' => '用户店铺id',
            'goods_id' => '商品唯一标识',
            'error_info' => '错误详细',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }
}
